using UnityEngine;
using System.Collections;

namespace play {
	public class Bullet {

		public Bullet (int direction, Vector3 pos, GameObject tank,bool isFromPlayer) {
			GameObject bullet = GameObject.Instantiate(Resources.Load("prefab/bullet"),
					pos,
			        Quaternion.identity
			) as GameObject;
			Bomb bomb = bullet.transform.GetComponent<Bomb> ();
			bomb.direction = direction;
			bomb.tank = tank;
			bomb.isFromPlayer = isFromPlayer;
		}
	}
}